package com.maiji.cloud.service;

import com.maiji.cloud.entities.shopingmall.GoodsComment;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.request.shopingmall.GoodsCommentFindAllReqData;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;

import java.util.List;

public interface GoodsCommentService extends IService<GoodsComment> {

    BaseMetaResDto<List<GoodsComment>> findAllGoodsComment(GoodsCommentFindAllReqData data, ReqMetaData reqMetaData, String token);

    BaseResDto thumbsUpGoodsCommentById(String goodsCommentId, String token);

    BaseMetaResDto<GoodsComment> findGoodsCommentById(String commentId, String goodsCommentId);

    BaseResDto publishGoodsComment(String orderId, String goodsId, String content, Integer star, List<String> commentLabelIds, List<String> commentImageIds, String token);

    BaseResDto delGoodsComment(String gcId);

    BaseResDto shieldGoodsComment(String goodsId, String gcId, Integer shield);

    BaseDataResDto<Integer> GoodsCommentShieldCount();

}
